#@layout()

#define content()
<div class="content-wrapper">

    <section class="content-header">
        <h1>
            腾讯云COS设置
            <small>Tencent Cloud COS Setting</small>
        </h1>
    </section>

    <section class="content">

        <div class="row">
            <div class="col-xs-12">
                <div class="box box-primary">
                    <div class="box-header ">
                        <h3 class="box-title"></h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal form-setting" autocomplete="off" id="optionForm">
                        <div class="box-body ">

                            <h4 class="page-header">腾讯云COS同步</h4>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">是否启用附件同步</label>
                                <div class="col-sm-6">
                                    <input type="checkbox" class="switchery" data-for="attachment_tencentcos_enable"
                                           #checkedIf(option("attachment_tencentcos_enable"))>
                                    <input type="hidden" id="attachment_tencentcos_enable"
                                           name="attachment_tencentcos_enable">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">API访问域名</label>
                                <div class="col-sm-6">
                                    <input type="input" class="form-control" placeholder="腾讯云COS的 endPoint"
                                           name="attachment_tencentcos_endpoint" value="#option('attachment_tencentcos_endpoint')">
                                    <p class="help-block"> 腾讯云API域名详情：<a target="_blank" href="https://help.aliyun.com/document_detail/31837.html">https://help.aliyun.com/document_detail/31837.html</a>。 </p>

                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">SecretId</label>
                                <div class="col-sm-6">
                                    <input type="input" class="form-control" placeholder="通过腾讯云安全令牌生成..."
                                           name="attachment_tencentcos_secretid" value="#option('attachment_tencentcos_secretid')">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">SecretKey</label>
                                <div class="col-sm-6">
                                    <input type="input" class="form-control" placeholder="通过腾讯云安全令牌生成..."
                                           name="attachment_tencentcos_secretkey" value="#option('attachment_tencentcos_secretkey')">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">区域</label>
                                <div class="col-sm-6">
                                    <input type="input" class="form-control" placeholder="腾讯云COS的 区域"
                                           name="attachment_tencentcos_region" value="#option('attachment_tencentcos_region')">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">存储空间</label>
                                <div class="col-sm-6">
                                    <input type="input" class="form-control" placeholder="腾讯云COS的 bucketName"
                                           name="attachment_tencentcos_bucketname" value="#option('attachment_tencentcos_bucketname')">
                                </div>
                            </div>

                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <div class="col-sm-offset-2 col-sm-10 submit-block">
                                <div class="box-submit">
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
            </div>
        </div>

    </section>

</div>
#end